
#ifndef _BSP_UART_H_
#define _BSP_UART_H_

#include <stdint.h>
#include <stdbool.h>
#define USART_DMAReq_Tx                      ((uint16_t)0x0080)
#define USART_DMAReq_Rx                      ((uint16_t)0x0040)
#define USART_IT_IDLE                        ((uint16_t)0x0424)

extern void bsp_uart1_init(void);
extern void bsp_uart1_dmatx_config(uint8_t *mem_addr, uint32_t mem_size);
extern void bsp_uart1_dmarx_config(uint8_t *mem_addr, uint32_t mem_size);
extern uint16_t bsp_uart1_get_dmarx_buf_remain_size(void);

#endif 

